﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace dbPoll_Application.Models
{
    public class OptionResponse
    {
        public virtual int responseID { get; set; }
        public virtual Participant participant { get; set; }
        public virtual int rank { get; set; }
        public virtual DateTime responseTime { get; set; }

        public OptionResponse()
        {
            this.responseID = -1;
            this.participant = null;
            this.rank = -1;
            this.responseTime = DateTime.Now;
        }

        public OptionResponse(Participant participant)
        {
            this.responseID = -1;
            this.participant = participant;
            this.rank = -1;
            this.responseTime = DateTime.Now;
        }

        public OptionResponse(int responseID, Participant participant)
        {
            this.responseID = responseID;
            this.participant = participant;
            this.rank = -1;
            this.responseTime = DateTime.Now;
        }

        public OptionResponse(Participant participant, int rank)
        {
            this.responseID = -1;
            this.participant = participant;
            this.rank = rank;
            this.responseTime = DateTime.Now;
        }

        public OptionResponse(int responseID, Participant participant, int rank)
        {
            this.responseID = responseID;
            this.participant = participant;
            this.rank = rank;
            this.responseTime = DateTime.Now;
        }
    }
}
